<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/file" prefix="f"%>
<form id="MerchantsForm">
	<s:hidden name="model.id" id='ids'></s:hidden>
	<s:hidden name="model.crateDate"></s:hidden>
	<s:hidden name="model.updateDate"></s:hidden>
	<s:hidden name="model.status" id='model_status'></s:hidden>
	<s:hidden name="model.deldata"></s:hidden>
	<s:hidden name="model.fuwuzhanId"></s:hidden>
	<s:hidden name="model.latitude" id="modelLatitude"></s:hidden>
	<s:hidden name="model.longitude" id="modelLongitude"></s:hidden>
	<s:hidden name="model.province" id="m_province"></s:hidden>
	<s:hidden name="model.city" id="m_city"></s:hidden>
	<s:hidden name="model.town" id="m_town"></s:hidden>
	
	<table width="100%" border="0" id="DingDanTable"  cellspacing="0" class='edit_table'>
		<tbody>
			<tr>
				<th>
					商家名称
				</th>
				<td>
				<input type="text" name='model.name' value='${model.name}' maxlength="150"	class="k-textbox"  />
				</td>
				<td  border="0" cellpadding="0"	cellspacing="0" rowspan="11" style="padding:0px;"  width="50%">
				 <input class="k-textbox"  style="width: 286px;" id="searchAddr">  <a class="k-button" id="searchBtn" onclick="initLoadBGoogleMap();">搜索</a>
				 <div id="mapParent" style="width: 100%; height:368px; display: block;overflow: hidden;border-top: 1px solid rgb(113, 146, 179);">
					<div id="map" style="height:388px; display: block;"></div>
				 </div>
				</td>
			</tr>
			<tr>
				<th>
					商家LOGO
					
				</th>
				<td>
					<f:upload fileName="${model.imageUrl}" folder="mendian"	name="model.imageUrl" />
					
					<br/><span style="color: red;">宽*高:300*300</span>
				</td>
			</tr>
			<tr>
				<th>
					商家编号
				</th>
				<td>
				<input type="text" name='model.no' value='${model.no}' maxlength="150"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					商家类型
				</th>
				<td>
				    <s:select name="model.type" list="merTypes" listKey="key" listValue="value"></s:select>
				</td>
			</tr>

			<tr>
				<th>
					商家微信号
				</th>
				<td>
				    <input type="text" name='model.wxNo' value='${model.wxNo}' maxlength="150"	class="k-textbox"  />
					<s:hidden name="model.wxid"></s:hidden>
				</td>
			</tr>
			<tr>
				<th>
					联系人
				</th>
				<td>
				 <input type="text" name='model.lxr' value='${model.lxr}' maxlength="150"	class="k-textbox"  />
				</td>
			</tr>

			<tr>
				<th>
					联系电话
				</th>
				<td>
					<input type="text" name='model.lxrTel' value='${model.lxrTel}' maxlength="150"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					活动协议
				</th>
				<td>
				<f:uploadHref fileName="${model.actiAtt}" folder="actiAttr"	name="model.actiAtt" />
				</td>
			</tr>
			<tr>
				<th>
					地址
				</th>
				<td>
					<input type="text" name='model.address' value='${model.address}' maxlength="150"	 id="searAddress"	style="width: 270px;"  class="k-textbox"  />
				</td>
			</tr>

			<tr>
				<th>
					关键字
				</th>
				<td>
					<input type="text" name='model.keyWords' value='${model.keyWords}' maxlength="150" style="width: 270px;"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					服务站名称
				</th>
				<td>
					<s:hidden name="model.fwzName"></s:hidden>
					<div>
						${model.fwzName }
					</div>
				</td>
			</tr>
			<tr>
				<th>
					活动时间
				</th>
				<td colspan="2">
				
				<input type="text" name='model.actiBeginTime' value='${model.actiBeginTime}' maxlength="30" readonly="readonly" style="width: 120px;"  id="queryStartDate" />
				
				至
				<input type="text" name='model.actiEndTime' value='${model.actiEndTime}' maxlength="30" readonly="readonly" style="width: 120px;" id="queryEndDate"  />				
				</td>
			</tr>

			<tr>
				<th>
					使用时间
				</th>
				<td colspan="2">
					<s:textarea name="model.allowTime" id="model_allowTime" rows="3" cssStyle="width:90%;height:65px;"></s:textarea>

				</td>
			</tr>

			<tr>
				<th>
					使用规则
				</th>
				<td colspan="2">
					<s:textarea name="model.useRules" id="model_useRules" rows="3" cssStyle="width:90%;height:65px;"></s:textarea>
				</td>
			</tr>
			<tr>
				<th>
					不可以使用日期
				</th>
				<td colspan="2">
					<s:textarea name="model.invaliDates" id="model_invaliDates" rows="3" cssStyle="width:90%;height:65px;"></s:textarea>
				</td>
			</tr>

			<tr>
				<th>
					活动信息
				</th>
				<td colspan="2">
					<s:textarea name="model.detailInfo" id="model_detailInfo" rows="3" cssStyle="width:90%;height:65px;"></s:textarea>
				</td>
			</tr>
			<s:hidden name="model.reason"></s:hidden>
			<s:if test='null!=model.reason&&""!=model.reason'>
			<tr>
				<th>
					审核意见
				</th>
				<td colspan="2">
				${model.reason}
				</td>
			</tr>
			</s:if>
		</tbody>
	</table>

	<div id='parentDiv' style="display: none">
		<div id='kuDialogDiv' style="display: none"></div>
	</div>
	<iframe name="downloadFileIframe" style="display: none"></iframe>
</form>
